/**
 * 定义站点模块
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.bcSite',['water.common.AJAXService']);
	
	module.service('$bcSiteService',function($AJAXService){
				
		/**
		 * 获取站点model
		 */
		this.getModel = function(key){
			var promise = $AJAXService.post("/BCSite/getModel",{name:'你好'});
			return promise;
		}
		
		this.saveModel = function(site){
			var promise = $AJAXService.post("/BCSite/saveModel",site);
			return promise;
		}
		
	})
}(window, angular));